From: Zheng Zhu Date: Fri, 17 Sep 2004 19:10:03 +0000 (+0000) Subject: set default language variant according to the http-accept-language header X-Git-Tag: 1.5.0alpha1~1977 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=920c18b2b91f62c439883292f78c05d5a5d708ad;p=lhc%2Fweb%2Fwiklou.git set default language variant according to the http-accept-language header --- diff --git a/includes/User.php b/includes/User.php index 19b51a5004..12d62cade5 100644 --- a/includes/User.php +++ b/includes/User.php @@ -164,6 +164,10 @@ class User { foreach ( $defOpt as $oname => $val ) { $this->mOptions[$oname] = $val; } + /* so that new user will have a default + language variant set using info from the http header + */ + $this->setOption('variant', $wgLang->getPreferredLanguage()); } /**